package com.song.guli.service.edu.fegin;

import com.song.guli.service.base.dto.MemberDto;
import com.song.guli.service.edu.fegin.fallback.UcenterMemberServiceBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author 宋超
 * HP - the login name of the current user.
 * 2021/11/6 - the current system date.
 * 16:53 - the current system time.
 */
@Service
@FeignClient(value = "service-ucenter" ,fallback = UcenterMemberServiceBack.class)
public interface UcenterFeginService {
    @GetMapping("/api/ucenter/member/getMember/{memberId}")
    MemberDto getMemberByMemberId(@PathVariable("memberId") String memberId);
}
